<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<link href="${pageContext.request.contextPath }/ui/ligerui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/ui/ligerui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/ui/ligerui/js/ui.core.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/ligerui/js/plugins/ligerGrid.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/ligerui/js/plugins/ligerToolBar.js"></script>
<title>教师管理</title>
<script type="text/javascript">
var grid = null;
$(function(){
	var toolitem ={items:[{
		text: '新增', click: clickadd, icon: 'add2'
	},{
		line: true
	},{
		text: '修改', click: clickadd, icon: 'edit'
	},{
		line: true
	},{
		text: '删除', click: clickadd, icon: 'delete'
	},{
		line: true
	},{
		text: '查看', click: clickadd, icon: 'search'
	},{
		line: true
	},{
		text: '搜索', click: clickadd, icon: 'search2'
	}]};
	
	$("#grid").ligerGrid({
		url:'${pageContext.request.contextPath }/getTeacherAll.do',
		async:false,
		rownumbers:true,
		height:'100%',
		columns:[{
			display: '主键',name: 'id',width: 120,isSort:false,hide:true
		},{
			display: '工号',name: 'code',width: 120,isSort:false
		},{
			display: '姓名', name: 'tname',isSort:false
		},{
			display: '性别', name: 'sex',isSort:false
		},{
			display: '民族', name: 'nation',isSort:false
		},{
			display: '籍贯', name: 'nativeplace',isSort:false
		},{
			display: '联系电话', name: 'phone',isSort:false
		},{
			display: '电子邮件', name: 'email',isSort:false
		},{
			display: '毕业院校', name: 'school',isSort:false
		},{
			display: '专业', name: 'profession',isSort:false
		},{
			display: '政治面貌', name: 'polity',isSort:false
		},{
			display: '备注', name: 'remark',isSort:false
		}],
		toolbar:toolitem
	});
});
function clickadd(){
	window.location.href='${pageContext.request.contextPath }/pages/mydesk/teacher/teacher_add.jsp';
}
</script>
</head>
<body>
	<div id="grid"></div>
</body>
</html>